//
//  UIButton+MMAdd.h
//  EraPig
//
//  Created by Mac_Mini on 2021/3/29.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

typedef enum : NSUInteger {
    ButtonLayoutStyleImageInLeft,    //图片 左  文本 右
    ButtonLayoutStyleImageInTop,     //图片 上  文本 下
    ButtonLayoutStyleImageInRight,   //图片 右  文本 下
    ButtonLayoutStyleImageInBottom,  //图片 下  文本 上
    ButtonLayoutStyleOverlap,        //图片文字重叠
} ButtonLayoutStyle;

@interface UIButton (MMAdd)

//- (void)addTarget:(nullable id)target forControlEvents:(UIControlEvents)controlEvents block:(void(^)(void))block;

- (void)layoutButtonEdge:(ButtonLayoutStyle)buttonLayoutStyle spacing:(CGFloat)spacing;

- (void)verticalImageAndTitle:(CGFloat)spacing;

@end

NS_ASSUME_NONNULL_END
